package post

import "go-caipu/pkg/services/dto"

type Post struct {
	PostId   int    `json:"postId"`   //岗位编号
	PostName string `json:"postName"` //岗位名称
	PostCode string `json:"postCode"` //岗位代码
	Sort     int    `json:"sort"`     //岗位排序
	Status   int    `json:"status"`   //状态
	Remark   string `json:"remark"`   //描述
	dto.ControlBy
	dto.ModelTime
}

type GetPostPageCommand struct {
	PostName       string `form:"postName" search:"type:exact;column:post_name;table:sys_post" comment:"岗位名称"`
	Status         string `form:"status" search:"type:exact;column:status;table:sys_post" comment:"状态"`
	dto.Pagination `search:"-"`
}

func (m *GetPostPageCommand) GetNeedSearch() interface{} {
	return *m
}

type GetPostCommand struct {
	PostId int64 `url:"id" json:"id"`
}

type RemovePostCommand struct {
	Ids []int64 `json:"ids"`
}
